﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime;
using Tomahawk.Runtime.Logic;
using Microsoft.Xna.Framework;

namespace Tutorial01
{
    public class Gameplay : GameState
    {

        /// <summary>
        /// Create your game objects here
        /// </summary>
        protected override void OnInitialize()
        {
            //place the camara in a convenient position
            Tomahawk.Runtime.Rendering.Camera camera = Engine.Instance.CameraManager.ActiveCamera;
            camera.LookAt(
                new Vector3(0, 0, 400),
                new Vector3(0, 0, 0),
                Vector3.UnitY);

            //create a ball logic object
            Board board = (Board)XWorld.Instance.CreateObject(typeof(Board));
        }

        /// <summary>
        /// This will be called when the loading procedure starts
        /// </summary>
        protected override void OnLoad()
        {
            Engine.Instance.ResourceManager.LoadPendantResources(this.ContentManager);
        }
        
        /// <summary>
        /// Destroy your game objects here
        /// </summary>
        protected override void OnDestroy()
        {
        }

        /// <summary>
        /// This will be called when the unloading procedure starts
        /// </summary>
        protected override void OnUnload()
        {
        }

    }

}
